* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

.page-layout {
    display: flex;
    height: 100vh;
}

/* 工具面板 */
.tool-panel {
    background: linear-gradient(135deg, #e3f2fd, #fce4ec);
    padding: 20px;
    width: 320px;
    overflow-y: auto;
    border-right: 1px solid #ccc;
}

.tool-panel h2,
.tool-panel h3 {
    margin-top: 15px;
    font-size: 1rem;
    color: #333;
}

/* 搜索区域 */
.video-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.search-btn {
    padding: 10px 15px;
    background-color: #9c27b0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background-color: #8e24aa;
}

/* 分类筛选 */
.category-filter select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

/* 视频列表表格 */
.video-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.video-table th,
.video-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.video-table tr:nth-child(even) {
    background-color: #fafafa;
}

.video-table a {
    color: #0d47a1;
    text-decoration: none;
}

/* 热门推荐 */
.recommend-list li {
    list-style-type: none;
    margin-top: 8px;
}

.recommend-list a {
    color: #0d47a1;
    text-decoration: none;
}

/* 工作区：视频播放器 */
.workspace {
    flex: 1;
    position: relative;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
}

/* 视频容器 */
.player-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 16 / 9; /* 固定比例 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 侧边栏 */
.side-panel {
    width: 240px;
    background: #f8f8f8;
    padding: 20px;
    border-left: 1px solid #ccc;
    overflow-y: auto;
}

.user-section {
    margin-bottom: 20px;
}

.user-section h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.user-section ul li {
    list-style-type: none;
    margin-top: 6px;
}

.user-section ul li a {
    color: #0d47a1;
    text-decoration: none;
}